<?php

namespace app\controller;

use think\annotation\Route;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
use think\facade\Db;
use think\response\Json;

class ReaderReaderTypeController
{
    /**
     * @route ("getAllReaderReaderTypes")
     * @return Json
     * @throws DataNotFoundException
     * @throws DbException
     * @throws ModelNotFoundException
     */
    public function getAllReaderReaderTypes()
    {
        return json(Db::table("Reader_ReaderType")->select());
    }
}